const { createProxyMiddleware } = require("http-proxy-middleware")

module.exports = function (app) {
	app.use(
		createProxyMiddleware("/mocky", {
			target: "https://www.mocky.io",
			changeOrigin: true,
			pathRewrite: {
				"/mocky": "",
			},
		})
	)
}
